<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>Perform operations</title>
	</head>
	<body>

		<h3>Perform operations with department</h3>
		
		<c:choose>
			<c:when test="${enter == true}">							
				<c:choose>			
					<c:when test="${errorFlag == true}">		
						Error: no department was selected
					</c:when>
					<c:otherwise>	
					<c:choose>						
						<c:when test="${action == 1}">		
								Department renamed successfully
							</c:when>	
							<c:otherwise>
								Department deleted				
							</c:otherwise>			
					</c:choose>
					</c:otherwise>
				</c:choose>
			</c:when>
			<c:otherwise>
				Incorrect data
			</c:otherwise>
		</c:choose>
		
		<br /><br />
		
		
		<form method="post" action="departmentlist.do">
			<input type="submit" value="Return" /> 
		</form> 

	</body>
</html>